﻿using FluentNHibernate.Mapping;
using AdventureWorks.Domain;
namespace AdventureWorks.DataAccess.Mappings
{
    public class VendorMapping : AuditableBusinessEntityMap<Vendor>
    {
        public VendorMapping() : base()
        {
            Schema("Purchasing");
            KeyColumn("BusinessEntityId");
            Map(x => x.AccountNumber);
            Map(x => x.Active, "ActiveFlag");
            Map(x => x.CreditRating);
            Map(x => x.PreferredVendorStatus);
            Map(x => x.Name);
            Map(x => x.PurchasingWebServiceUrl);
        }
    }
}
